<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>登录-<?php echo Option::get('BLOG_TITLE'); ?></title>
    <link rel="stylesheet" href="<?php assets_url('libs/bootstrap/css/bootstrap.min.css') ?>">
    <link rel="stylesheet" href="<?php assets_url('libs/bootstrap/css/bootstrap-theme.min.css') ?>">
    <link rel="stylesheet" href="<?php assets_url('admin.css') ?>">
    <script src="<?php assets_url('libs/jquery.min.js'); ?>"></script>
    <script src="<?php assets_url('libs/bootstrap/js/bootstrap.min.js') ?>"></script>
    <script>
        var Snail = window.Snail || {};
        Snail._message = <?php echo json_encode(get_message()); ?>;
        Snail._csrfToken = '<?php echo csrf_token_get(); ?>';
    </script>
    <script src="<?php assets_url('admin.js'); ?>"></script>
    <style>
        body {
            padding-top: 40px;
            padding-bottom: 40px;
            background-color: #eee;
        }

        .form-signin {
            max-width: 330px;
            padding: 15px;
            margin: 0 auto;
        }
        .form-signin .form-signin-heading,
        .form-signin .checkbox {
            margin-bottom: 10px;
        }
        .form-signin .checkbox {
            font-weight: normal;
        }
        .form-signin .form-control {
            position: relative;
            height: auto;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            padding: 10px;
            font-size: 16px;
        }
        .form-signin .form-control:focus {
            z-index: 2;
        }
        .form-signin input[type="email"] {
            margin-bottom: -1px;
            border-bottom-right-radius: 0;
            border-bottom-left-radius: 0;
        }
        .form-signin input[type="password"] {
            margin-bottom: 10px;
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }
    </style>
</head>
<body>
<div class="container">

    <form class="form-signin" method="post">
        <?php echo csrf_token_hidden_input_html() ?>
        <h2 class="form-signin-heading">请登录</h2>
        <label for="username" class="sr-only">用户名</label>
        <input type="text" id="username" name="username" class="form-control" placeholder="用户名" required autofocus>
        <label for="password" class="sr-only">密码</label>
        <input type="password" id="password" name="password" class="form-control" placeholder="密码" required>
        <div class="checkbox">
            <label>
                <input type="checkbox" value="remember-me"> 记住我
            </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
    </form>

</div> <!-- /container -->
</body>
</html>